package tpju;


import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import junit.framework.TestCase;


/**
* The test class TestResp.
*
* @author  (your name)
* @version (a version number or a date)
*/
public class TestResp extends TestCase
{
   private Magasin magasin1;
   private Responsable responsa1;

   /**
    * Default constructor for test class TestResp
    */
   public TestResp()
   {
   }

   /**
    * Sets up the test fixture.
    *
    * Called before every test case method.
    */
   @Before
   public void setUp()
   {
       magasin1 = new Magasin("jouets", "paris");
       responsa1 = new Responsable("dupond", 45);
       magasin1.addResponsable(responsa1);
   }

   /**
    * Tears down the test fixture.
    *
    * Called after every test case method.
    */
   @After
   public void tearDown()
   {
   }

   @Test
   public void testRespMag()
   {
       assertEquals(magasin1.getResponsable(),responsa1);
   }
}